package com.zwr.sheller.customer.Service;

import com.zwr.sheller.core.common.WQQBusinessException;
import com.zwr.sheller.core.pojo.Goods;

import java.util.List;
import java.util.Map;

/**
 * @Author: 18032
 * @Date: 10:18 2022/1/12
 */
public interface StoreShellerIndexService {
    /**
     * 剥壳者商城首页
     * @param id
     * @return
     * @throws WQQBusinessException
     */
    List<Map<String,Object>> indexData(Long id) throws WQQBusinessException;

    /**
     * 剥壳者商城的查询所有商品
     * @Param storeId
     * @Param
     * @return
     */
    List<Goods> selectAllShellerGoods(Long storeId) throws WQQBusinessException;

    /**
     * 剥壳者全部商品:点击综合弹出分类
     * @param storeId
     * @param choose 1.最新上架 2.最高折扣 3. 销量 4.价格
     * @return
     */
    List<Map<String, Object>> selectNewOrSaleGoods(Long storeId, Integer choose) throws WQQBusinessException;

    /**
     *  剥壳者全部商品:点击筛选弹出选项
     * @param storeId
     * @param choose
     * @param lowPrice
     * @param highPrice
     * @return
     * @throws WQQBusinessException
     */
    List<Map<String,Object>> selectByOption(Long storeId,Integer choose,Double lowPrice,Double highPrice) throws WQQBusinessException;

    /**
     * 剥壳者商铺:店铺介绍
     * @param storeId
     * @return
     */
    Map<String,Object> introduceStore(Long storeId) throws WQQBusinessException;

    /**
     * 店铺全部分类:点击显示一级分类
     * @param storeId
     * @return
     */
    List<Map<String,Object>> oneSort(Long storeId) throws WQQBusinessException;

    /**
     * 根据一级查询二级三级分类
     * @param storeId
     * @return
     * @throws WQQBusinessException
     */
    List<Map<String,Object>> twoAndThreeSort(Long storeId,Long itemId) throws WQQBusinessException;

    public Map<String, Object> selectStoreBasicMessage(Long storeId);

}
